home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / Libraries / EleOfC++ vrs 0.1 / TextEdit / TTEDoc.h < prev   
Encoding:
C/C++ Source or Header  |  1991-07-13  |  1.3 KB  |  64 lines  |  [TEXT/KAHL]

  1. /*
  2. ** this is the class decloration of TTEDoc class
  3. */
  4. #define _H_TTEDoc
  5.  
  6.  
  7. #include "TScrollDoc.h"
  8.  
  9.  
  10. struct    TTEDoc:TScrollDoc
  11. {
  12.     TEHandle    fTEHandle;
  13.     
  14.     TDoc*    Init(OSType theCreator, SFReply *SFInfo);
  15.     void    Delet( void);
  16.     
  17.     Boolean    InitDoc( void);
  18.     
  19.     void    ScrollContents( short dh, short dv);
  20.     void    SetScrollBarValues( void );
  21.     
  22.     void    GetContentRect( Rect *r);
  23.     void    SetTERect( void);
  24.     short    GetVertSize(void);
  25.     short    GetHorizSize(void);
  26.     short     GetVertLineScrollAmount(void);
  27.     short    GetHorizLineScrollAmount(void);
  28.     
  29.     Boolean    CanSelectAll(void);
  30.     void    DoSelectAll(void);
  31.     Boolean    HaveSelection(void);
  32.     
  33.     void    DoKeyDown(EventRecord *theEvent);
  34.     void    AddText(Ptr text, long len);
  35.     
  36.     Boolean    CanPaste(OSType theType);
  37.     void    DoClear(void);
  38.     Boolean    DoCopy(Handle *theData, OSType *theType);
  39.     Boolean    DoCut(Handle *theData, OSType *theType);
  40.     void    DoPaste(Handle theData, OSType *theType);
  41.     
  42.     void    Activate(void);
  43.     void    Deactivate(void);
  44.     
  45.     void    Draw(Rect *r);
  46.     
  47.     void    ContentClick(EventRecord *theEvent);
  48.     
  49.     void    DoIdle(void);
  50.     void    AdjustCursor(Point where);
  51.     
  52.     void    DoGrow(EventRecord *theEvent);
  53.     void    DoZoom(short partCode);
  54.     
  55.     OSType    GetDocType(void);
  56.     Boolean CanSaveAs(void);
  57.     Boolean    ReadDocFile(short refNum);
  58.     Boolean    WriteDocFile(short refNum);
  59.     
  60. };/*end of TTEDoc class decloration*/
  61.  
  62. pascal Boolean MyClickLoop(void);
  63.  
  64.